import http from './http.js'

export const getToken = (data) => {
    const url = "https://api.cnblogs.com/token"
    return http({
        method: "POST",
        url,
        data,
        contentType: 'application/x-www-form-urlencoded'
    })
}
/**
 * pageIndex={pageIndex}&pageSize={pageSize}
 **/
export const getBlogsIndex = (data) => {
    const url = "https://api.cnblogs.com/api/blogposts/@sitehome"
    return http({
        url,
        data,
        contentType: 'application/x-www-form-urlencoded'
    })
}